package edu.luas.digitalmedia.service;

import edu.luas.digitalmedia.dao.MyAddressDao;
import edu.luas.digitalmedia.pojo.MyAddress;

import java.util.List;

public class MyAddressService {
    public int insert(MyAddress model) throws Exception {
        return new MyAddressDao().insert(model);
    }

    public List<MyAddress> selectList() throws Exception {
        return new MyAddressDao().selectList();
    }


    public MyAddress selectOne(Integer id) {
        return new MyAddressDao().selectOne(id);
    }

    public int update(MyAddress model) {
        return new MyAddressDao().update(model);
    }

    public int delete(Integer id) {
        return new MyAddressDao().delete(id);
    }

    }

